package com.vhall.component.plugin.common.support;

/**
 * @author yongzheng.xu
 * @date 2021/6/20 19:39
 */
public class VssTokenThreadLocal {

    private static ThreadLocal<VssToken> thLocal = new ThreadLocal<>();

    public static void setToken(VssToken token) {
        thLocal.set(token);
    }

    public static VssToken getToken() {
        return thLocal.get();
    }

    public static void remove() {
        thLocal.remove();
    }
}
